"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
 * 数组
 */
let array = [1, 2, 3];
let array2 = ["xiaowang"];
let array3 = [{ id: 1, name: "xiaowang" }];
/**
 * 枚举
 */
var orderState;
(function (orderState) {
    orderState[orderState["error"] = 0] = "error";
    orderState[orderState["success"] = 1] = "success";
    orderState[orderState["timeout"] = 2] = "timeout";
})(orderState || (orderState = {}));
const order = {
    id: 1,
    name: "团购订单",
    state: 1
};
if (order.state == orderState.error) {
    //失败代码
}
else if (order.state === orderState.success) {
}
/**
 * undefined null
 * 联合类型
 */
let stu;
console.log(stu);
stu = 1;
stu = null;
/**
 * object类型
 */
let user = { id: 1 };
let user2 = [];
let user3 = function () { };
// console.log(user.id);
let user4 = { id: 1 };
console.log(user4.id);
/**
 * any
 */
let stuName = "xiaowang";
stuName = 1;
